package com.yourenbang.lingyun.transaction.constant;

/**
 * @Description
 * @Date 2021/1/13 10:58
 * @Created by Jason
 */
public enum LklTransTypeEnum {
    /**
     * 消费交易
     */
    TYPE_012001("消费交易","012001"),
    /**
     * 押金交易
     */
    TYPE_412001("押金交易","412001"),
    /**
     * 预授权完成交易
     */
    TYPE_012006("预授权完成交易","012006"),
    /**
     * 消费交易
     */
    TYPE_012002("消费交易","012002"),
    /**
     * 流量卡交易-联动优势
     */
    TYPE_012003("流量卡交易","012003");

    LklTransTypeEnum(String typeName, String transType) {
        this.typeName = typeName;
        this.transType = transType;
    }

    private String typeName;
    private String transType;

    public String getTypeName() {
        return typeName;
    }

    public String getTransType() {
        return transType;
    }


    public static String getTransTypeByTypeName(String typeName){
        for (LklTransTypeEnum lklTransTypeEnum : LklTransTypeEnum.values()) {
            if (lklTransTypeEnum.getTypeName().equals(typeName)) {
                return lklTransTypeEnum.getTransType();
            }
        }
        return null;
    }

}
